<template>
  <van-cell>
    <div class="box">
      <div class="left">
        <img
          :src="'http://liufusong.top:8080'+item.houseImg"
          alt=""
        />
      </div>
      <div class="right">
        <h3  class="van-ellipsis">{{ item.title }}</h3>
        <div class="right-one">{{ item.desc }}</div>
        <div class="right-two">{{ item.tags[0] }}</div>
        <div class="right-three">{{item.price}}元/月</div>
      </div>
    </div>
  </van-cell>
</template>

<script>
export default {
  props: ['item']
}
</script>

<style lang="less" scoped>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.box {
    display: flex;
    padding-top: 16px;
  .left {
    flex: 30%;
    float: left;
    overflow: hidden;
    width: 106px;
    height: 80px;
    img {
      width: 100%;
    }
  }
  .right {
    flex: 70%;
    overflow: hidden;
    line-height: 20px;
    padding-left: 12px;
    h3 {
      font-size: 15px;
      color: #394043;
       overflow: hidden;
    }
    .right-one {
      font-size: 12px;
      color: #afb2b3;
    }
    .right-two {
      display: inline-block;
      color: #39becd;
      background: #e1f5f8;
      font-size: 12px;
      border-radius: 3px;
      padding: 4px 5px;
      margin-right: 5px;
      line-height: 12px;
    }
    .right-three {
      font-size: 12px;
      color: #fa5741;
    }
  }
}
</style>
